home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / networking / info-service / wais / ir-book-sources / bool / makefile < prev    next >
Encoding:
Makefile  |  1993-04-08  |  1.8 KB  |  71 lines

  1. #
  2. # Makefile Written by S. Wartik, April 1991
  3. #          Modified by C. Fox, November 1991
  4. #
  5. # Makefile for bit-vector implementation of boolean operations.
  6. #
  7. # The make directives are:
  8. #
  9. #      bv.o        A bit vector implementation of boolean operations.
  10. #
  11. #    hash.o        A hashing implementation of boolean operations.
  12. #
  13. #    all (default)    bv.o and hash.o.
  14. #
  15. #      bvdriver    A test driver for the bit vector-based implementation.
  16. #
  17. #      hdriver        A test driver for the hashing-based implementation.
  18. #
  19. #    regression    A combined execution of bvregression and hregression.
  20. #
  21. #      bvregression    An execution of the bit vector test driver, with an 
  22. #            indication of whether the results are as expected.
  23. #
  24. #      hregression    An execution of the hashing test driver, with an
  25. #            indication of whether the results are as expected.
  26. #
  27.  
  28. BV_OBJS=    bv.o
  29. BV_SRCS=    bv.c
  30. BV_HDRS=    bv.h
  31.  
  32. HSH_OBJS=    hash.o
  33. HSH_SRCS=    hash.c
  34. HSH_HDRS=    hash.h
  35.  
  36. BV_DR_SRCS=    bvdriver.c
  37. BV_DR_OBJS=    bvdriver.o
  38. HSH_DR_SRCS=    hdriver.c
  39. HSH_DR_OBJS=    hdriver.o
  40.  
  41. all : $(BV_OBJS) $(HSH_OBJS)
  42.  
  43. bvdriver: $(BV_OBJS) $(BV_DR_OBJS)
  44.     $(CC) $(LDFLAGS) -o bvdriver $(BV_DR_OBJS) $(BV_OBJS)
  45.  
  46. hdriver: $(HSH_OBJS) $(HSH_DR_OBJS)
  47.     $(CC) $(LDFLAGS) -o hdriver $(HSH_DR_OBJS) $(HSH_OBJS)
  48.  
  49. $(BV_DR_OBJS): $(BV_DR_SRCS) $(BV_HDRS)
  50.     $(CC) -c $(CFLAGS) $(BV_DR_SRCS)
  51.  
  52. $(HSH_DR_OBJS): $(DR_SRCS) $(HSH_HDRS)
  53.     $(CC) -c $(CFLAGS) $(HSH_DR_SRCS)
  54.  
  55. bvregression: bvdriver
  56.     ./bvdriver 0 255    # Exercise maximum possible range.
  57.     ./bvdriver 1 256    # Ditto, but offset a bit.
  58.     ./bvdriver -10 34    # Can ranges include all domain values?
  59.     ./bvdriver 20 26    # Test a small range too.
  60.     ./bvdriver 1024 1100    # Test a large minimum value.
  61.  
  62. hregression: hdriver
  63.     ./hdriver 0 20 101    # Large hash table, few elements.
  64.     ./hdriver 0 101 20    # Small hash table, many elements.
  65.  
  66. regression: bvregression hregression
  67.  
  68. bv.o:    bv.h
  69.  
  70. hash.o:    hash.h
  71.